package com.carrent.demo.Service;

import com.carrent.demo.Domain.Cars;
import com.carrent.demo.Domain.ContractDto;
import com.carrent.demo.Domain.EmployeeInformation;

import java.text.ParseException;
import java.util.List;

public interface CarsService {
    List<Cars> getPage(Integer start,Integer pageSize,String name);
    Integer getCount(String name);
    List<Cars> getPage2(Integer start,Integer pageSize);
    Integer getCount2();
    Boolean deleteCar(String id);

    Boolean editStatus(Integer id,Integer status);

    Boolean editCar(Cars cars);

    Boolean addCar(Cars cars);
    List<EmployeeInformation> selectEmployee();

    Boolean addContract(ContractDto contractDto,String userId) throws ParseException;
}
